package top.suven.base.core.redis;


/**   
 * @Title: RedisConstants.java 
 * @author Joven.wang   
 * @date   2016年7月28日
 * @version V1.0  
 * @Description: TODO(说明)  
 */

public class RedisConstants {

    public static final int REDIS_NONE =  -1;
    public static final int REDIS_ZERO =   0;
    public static final int ONE_SECOND =   1;
    public static final int THREE_SECOND = 3;
    public static final int FIVE_SECOND =  5;
    public static final int TEN_SECOND =  10;
    public static final int HALF_MINUTE = 30;
    public static final int ONE_MINUTE =  60;
    public static final int TWO_MINUTE =   2 * 60;
    public static final int THREE_MINUTE = 3 * 60;
    public static final int FIVE_MINUTE =  5 * 60;
    public static final int TEN_MINUTE =  10 * 60 ;
    public static final int HALF_HOUR =   30 * 60;
    public static final int ONE_HOUR =    60 * 60;
    public static final int HALF_DAY =   1 * 12 * 60 * 60;
    public static final int ONE_DAY =    1 * 24 * 60 * 60;
    public static final int TWO_DAY =    2 * 24 * 60 * 60;
    public static final int THREE_DAY =  3 * 24 * 60 * 60;
    public static final int FOUR_DAY =   4 * 24 * 60 * 60;
    public static final int FIVE_DAY =   5 * 24 * 60 * 60;
    public static final int SIX_DAY =    6 * 24 * 60 * 60;
    public static final int SEVEN_DAY =  7 * 24 * 60 * 60;
    public static final int TEN_DAY =   10 * 24 * 60 * 60;
    public static final int ONE_MONTH = 30 * 24 * 60 * 60;
    public static final int MAX_DAY =   Integer.MAX_VALUE;

    public static final String REDIS_LOCK_PREFIX = "redis_lock:";

    public static boolean isOpenRedis_RW = true;
    public static boolean isOpenRedis_R = true;
    public static boolean isOpenRedis_W = true;


}
